<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>【xxx】后台管理</title>
    <link rel="stylesheet" href=" __CONTROL_TPL__/css/add.css">
    <jquery/>
    <hdui/>
    <js file="__CONTROL_TPL__/js/js.js"/>
</head>
<body>
    <div id="admin">                     
        <div id="right">
            <div class="M-articless">
                <div class="top_box">
                    <h3>商品编辑</h3>
                </div>
                <div class="art-lisi">
                    <!-- <div class="forMsg">操作成功信息</div> -->
                    <form action="{|U:'edit'}" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="gid" value="{$field.gid}">
                        <div class="tab">
                            <ul class="tab_menu">
                                <li lab="base">
                                    <a class="action">基本设置</a>
                                </li>
                                <li lab="body">
                                    <a href="#">商品介绍</a>
                                </li>
                                <li lab="pics">
                                    <a href="#">内容页展示图</a>
                                </li>
                                <li lab="seo">
                                    <a href="#">SEO</a>
                                </li>
                            </ul>
                            <div class="tab_content">
                                <div id="base" class="content action">
                                    <table class="table2">
                                        <tr>
                                            <td width="100">商品名称</td>
                                            <td>
                                                <input type="text" name="gname" value="{$field.gname}" class="w500"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100">推荐</td>
                                            <td>
                                                <label><input type="checkbox" name="flag[]" value="推荐"/> 推荐</label>
                                                <label><input type="checkbox" name="flag[]" value="推荐"/> 置顶</label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100">商品栏目</td>
                                            <td>
                                                <select name="cid" class="category" >
                                                    <option value="0">==选择栏目==</option>
                                                    <list from="$Category" name="n">
                                                        <option
                                                        <if value="$field.cid==$n.cid">selected="selected"</if>
                                                        value="{$n.cid}"
                                                        <if value="$n.cat_type==0">class="feng"</if>
                                                        >{$n.html}{$n.cname}
                                                        <if value="$n.cat_type==0">(封面栏目)</if>
                                                        </option>
                                                    </list>
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100">商品价格</td>
                                            <td>
                                                <input type="text" name="price" value="{$field.price}" class="w100"/> 元
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100">库存</td>
                                            <td>
                                                <input type="text" name="stock" value="{$field.stock}" class="w100" value="0"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100">商品货号</td>
                                            <td>
                                                <input type="text" name="goods_sn" value="{$field.goods_sn}" class="w100"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>产品图片</td>
                                            <td>
                                                <input type="file" name="pic"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" class="attr">商品属性</td>
                                        </tr>

                                        <tr>

                                            <td>产地</td>
                                            <td>
                                                <input type="text" name="pic"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" class="sta">商品规格</td>
                                        </tr>
                                        <tr>
                                            <td>颜色</td>
                                            <td>
                                                <input type="text" name="pic"/>
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="attribute">
                                    </div>
                                </div>
                                <div id="body" class="content">
                                    <table class="table2">
                                        <tr>
                                            <td width="80">详细介绍</td>
                                            <td>
                                                <ueditor name="body" content="{$field.body}"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="80">商家服务</td>
                                            <td>
                                                <textarea class="w600 h180" name="service">{$field.service}  
                                                </textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100">查看次数</td>
                                            <td>
                                                <input type="text" name="click" class="w300" value="{$field.click}"/>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div id="pics" class="content">
                                    <table class="table2">
                                        <tr>
                                            <td width="20">
                                                <a href="javascript:" onclick="addImg(this);">[+]</a>
                                            </td>
                                            <td width="320">
                                                图片描述 <input type="test" name="goods_pic_alt[]" class="w200" value="{$field.description}"/>
                                            </td>
                                            <td>
                                                <input type="file" name="goods_pic[]"/>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div id="seo" class="content">
                                    <table class="table2">
                                        <tr>
                                            <td width="100">SEO关键字</td>
                                            <td>
                                                <input type="text" value="{$field.keyworkds}" name="keyworkds" class="w500"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="80">SEO描述</td>
                                            <td>
                                                <textarea class="w500 h150" name="description">
                                                    {$field.description}
                                                </textarea>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="empty15"></div>
                        <div>
                            <input type="submit" value="提交" class="btn"/>
                        </div>
                    </form>
                </div>
            </div>
        </div>       
    </div>
</body>
</html>